package com.register.dao;

import com.register.pojo.Register;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface RegisterDao {

    //查询所有
    List<Register> selectAll();
    //按id查找信息
    Register selectById(@Param("id") int id);
    //增加信息
    int addRegister(Register register);
    //删除信息
    int deleteRegister(@Param("id") int id);
    //修改信息
    int updateRegister(Register register);
}
